package com.yf.service.impl;

import com.yf.entity.WorkType;
import com.yf.mapper.WorkTypeMapper;
import com.yf.service.WorkTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.util.List;
@Service
@Transactional
@CrossOrigin
public class WorkTypeServiceImpl implements WorkTypeService {

    @Autowired
    private WorkTypeMapper workTypeMapper;

    @Override
    public List<WorkType> getWorkTypeList() {
        return workTypeMapper.getWorkTypeList();
    }

    @Override
    public WorkType getWorkTypeById(Integer workTypeId) {
        return null;
    }
}
